<?php

/**
 * 
 * 模块
 * @author Administrator
 *
 */
class Admin_Models_Model extends Fengqiaoju_Db_Table {

	public function __construct() {

		parent::__construct ();
		$this->_name = $this->_prefix . "site_model";
		$this->_primary = "model_id";
	}

	/**
	 * 获取模块信息
	 */
	public function getModelInfo($where) {

		$where = $this->arrayToString ( $where );
		return $this->fetchRow ( $where );
	}

	/**
	 * 获取模块列表
	 */
	public function getModelList($where , $order = '' , $count = '' , $offset = '') {

		$where = $this->arrayToString ( $where );
		return $this->fetchAll ( $where, $order, $count, $offset );
	}
}
?>